package com.cloud.feign.rpc;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Description
 * @ClassName GetHello
 * @Author dhn
 * @date 2021.06.21 10:48
 */
@FeignClient(value = "ribbon-provider")
public interface GetHello {
    @RequestMapping(value = "/hello",method = RequestMethod.GET)
    public String sayHello(@RequestParam("name") String name);
}
